import {get, postWithJson} from "@/api/requests";

/**
 * 健康饮食搭配参数配置
 * @param params
 * @returns {Promise<*>}
 */
export async function fetch(params) {
    return get('hcmpro/fetch', params);
}

export async function fetchOne(params) {
    return get('hcmpro/fetchOne', params);
}

export async function add(params) {
    return postWithJson('hcmpro/add', params);
}

export async function update(params) {
    return postWithJson('hcmpro/update', params);
}
export async function drop(params) {
    return get('hcmpro/drop', params);
}

export  async function fetchMemberTransJson(){
    return get('hcmpro/fetchMemberTransJson');
}